package com.liujun.spring4.demo.aop.aop.cglibproxy;

/**
 * @author liujun
 * @version 0.0.1
 * @date 2018/09/19
 */
public class CglibProxyMain {

  public static void main(String[] args) {
    CglibProxy cgliproxy = new CglibProxy();

    try {
      ForumService forumInstance = (ForumService) cgliproxy.getProxy(ForumServiceImpl.class);

      forumInstance.removeTopic(10);
      System.out.println();
      System.out.println();
      forumInstance.removeForm(100);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}
